import request from '@/request';

export const upload = function <T>(formdata: FormData): Promise<T> {
    return request({
        method: 'post',
        url: '/media/upload',
        data: formdata,
    });
};
